package com.haircut.project.vo.group;

import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Setter
@Getter
public class GroupConfigRelVo {
    /**
     * 逐渐id
     */
    @NotBlank(message = "主机id")
    private String id;
    /**
     * 配置id
     */
    @NotBlank(message = "配置id")
    @NotBlank(message = "配置id不能为空")
    private String configId;
    /**
     * 配置比例
     */
    @NotNull(message = "配置比例")
    @DecimalMin(value = "0.01",message = "配置比例必须大于0.01")
    @DecimalMax(value = "100",message = "配置比例必须小于等100")
    private BigDecimal technicianRate;
}
